package tote.command;

import java.util.Date;

public class TourCommand {
    private Integer tourId;
    private Date firstMatchTime;
    private Date lastMatchTime;

    public TourCommand(Date firstMatchTime, Date lastMatchTime) {
	this(null, firstMatchTime, lastMatchTime);
    }

    public TourCommand(Integer tourId, Date firstMatchTime, Date lastMatchTime) {
	this.tourId = tourId;
	this.firstMatchTime = firstMatchTime;
	this.lastMatchTime = lastMatchTime;
    }

    public Integer getTourId() {
	return tourId;
    }

    public void setTourId(Integer tourId) {
	this.tourId = tourId;
    }

    public Date getFirstMatchTime() {
	return firstMatchTime;
    }

    public void setFirstMatchTime(Date firstMatchTime) {
	this.firstMatchTime = firstMatchTime;
    }

    public Date getLastMatchTime() {
	return lastMatchTime;
    }

    public void setLastMatchTime(Date lastMatchTime) {
	this.lastMatchTime = lastMatchTime;
    }

    @Override
    public String toString() {
	return "TourCommand [tourId=" + tourId + ", firstMatchTime=" + firstMatchTime + ", lastMatchTime="
		+ lastMatchTime + "]";
    }
}
